package com.company.service.impl;

import com.company.service.StatrService;

import java.util.Scanner;

public class StatrServiceImpl implements StatrService {
    @Override
    public void execute() {
        Scanner sc = new Scanner(System.in);
        System.out.println("欢迎使用书虫");
        while (true){
            System.out.println("1.登录");
            System.out.println("2.注册");
            System.out.println("3.退出");
            System.out.println("请选择");
            int choice = sc.nextInt();
            switch (choice){
                case 1:
                    System.out.println("登录");



                    break;
                case 2:
                    System.out.println("注册");
                    break;
                case 3:
                    System.exit(0);
                    System.out.println("退出");
                default:
                    System.out.println("输入有误");
            }
        }
    }
}
